import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { MarshalException } from "../../Engine/RMI/MarshalException";
type int = number;
//class ECmdCell
    
    export  class ECmdCell
    {
        constructor(arg1: int)
        {
            
            this.__value = arg1;
            return;
        }

        public value(): int
        {
            return this.__value;
        }

        public __write(arg1: SerializeStream): void
        {
            arg1.writeShort(this.__value);
            return;
        }

        public static convert(arg1: int): ECmdCell
        {
            return new ECmdCell(arg1);
        }

        public static __read(arg1: SerializeStream): ECmdCell
        {
            var loc1=arg1.readShort();
            if (loc1 < 0 || loc1 >= 14351) 
            {
                throw new MarshalException();
            }
            return ECmdCell.convert(loc1);
        }

        public static /* const */_ECmdCellEntityLeft: int=14001;

        public static /* const */_ECmdCellEntityMove: int=14002;

        public static /* const */_ECmdCellEntityAttributeUpdate: int=14003;

        public static /* const */_ECmdCellEntityFlash: int=14004;

        public static /* const */_ECmdCellEntityRevival: int=14005;

        public static /* const */_ECmdCellEntityRevivalInSitu: int=14006;

        public static /* const */_ECmdCellFight: int=14100;

        public static /* const */_ECmdCellFightTo: int=14101;

        public static /* const */_ECmdCellFightBack: int=14102;

        public static /* const */_ECmdCellRemoveBuffer: int=14103;

        public static /* const */_ECmdCellBeginCollect: int=14110;

        public static /* const */_ECmdCellEndCollect: int=14111;

        public static /* const */_ECmdCellRemoveEntity: int=14200;

        public static /* const */_ECmdCellRemoveItem: int=14201;

        public static /* const */_ECmdCellUpdateShopItem: int=14202;

        public static /* const */_ECmdCellPushDefenseItemList: int=14300;

        public static /* const */_ECmdCellPushSixtyItemList: int=14301;

        public static /* const */_ECmdCellBossClear: int=14310;

        public static /* const */_ECmdCellMagicTowerQuestion: int=14320;

        public static /* const */_ECmdCellFightRecord: int=14330;

        public static /* const */_ECmdCellUpdateGateBusiness: int=14340;

        public static /* const */_ECmdCellShareHurt: int=14345;

        public static /* const */_ECmdCellPushChaosFightItemList: int=14350;

        public /* var */__value: int;
    }
